package com.dragon.blelibrary.lib;

import android.bluetooth.BluetoothGatt;
import android.bluetooth.BluetoothGattCharacteristic;
import android.bluetooth.BluetoothGattDescriptor;

/**
 * 系统ble Gatt接口事件外调，一般用于ota
 */

public interface GattCallbackOut {

     void onConnectionUpdated(int interval, int latency, int timeout);

     void onConnectionStateChange(BluetoothGatt gatt, int status, int newState);

     void onServicesDiscovered(BluetoothGatt gatt, int status);

     void onDescriptorRead(BluetoothGatt gatt, BluetoothGattDescriptor descriptor, int status);

     void onDescriptorWrite(BluetoothGatt gatt, BluetoothGattDescriptor descriptor, int status);

     void onCharacteristicRead(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, int status);

     void onCharacteristicWrite(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, int status);

     void onCharacteristicChanged(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic);

     void onReadRemoteRssi(BluetoothGatt gatt, int rssi, int status);
}
